 

 $(document).ready(function(){
	 	function pageV(count,curr){
	 	 layui.use(['laypage', 'layer'], function(){
		  var laypage = layui.laypage
		  ,layer = layui.layer;
		    laypage.render({
		    elem: 'demo7'
		    ,limit:15
		    ,curr:curr
		    ,count: count
		    ,layout: ['count', 'prev', 'page', 'next', 'skip']
		    ,jump: function(obj,first){
		    	if(!first){
		    		$('.data_cont').html('');
		    		getData(obj.curr)
		    	}
		    }
		  });
		})
 	}
 	getData(1);
 	function getData(curr){
 	 $.ajax({
 	 	type:"get",
 	 	url:"https://www.retux.cn/MgLoginInfo",
 	 	data:{
 	 		page:curr,
 	 		row:25
 	 	},
 	 	success:function(data){
 	 		dataView(data[0]);
 	 		pageV(data[1],curr);
 	 	}
 	 });
 	 
 	}
 	
 	function dataView(data){
 	 	for (var i = 0;i<data.length;i++) {
 	 		var tabsText = `<tr>
      					<td>${data[i][0]}</td>
      					<td>${data[i][1]}</td>
      					<td>${data[i][2]}</td>
      					<td>${data[i][3]}</td>
      		 		</tr>`;
      		 		$('.data_cont').append(tabsText);
 	 	     }
 	 	   
      	
 	 	            
 	    }
 })
